<?php
App::uses ( 'AuthComponent', 'Controller/Component' );
class JobType extends AppModel {
	public $name = 'JobType';
	
	public $validate = array ('job_id' => array ('required' => array ('rule' => array ('notEmpty' ), 'message' => 'A job id is required' ) ), 'type_id' => array ('required' => array ('rule' => array ('notEmpty' ), 'message' => 'A type id is required' ) ) );
	
	public $belongsTo = array ('Job' => array ('className' => 'Job', 'foreignKey' => 'job_id' ), 'Type' => array ('className' => 'Type', 'foreignKey' => 'type_id' ) );
}